
function SideBarBox(ulSel){
	this.$boxUl = $(ulSel);
	this.$items = this.$boxUl.find("a");
	
}

SideBarBox.prototype = {
	changeCurrent : function(currentIndex){
		this.$items.parent(".current").removeClass("current");
		
		var $currentLi = $(this.$items).parent().filter(":eq("+ currentIndex+")");
		$currentLi.addClass("current");
	}
}


$(document).ready(function(){
	
//	var barBox = new SideBarBox("#sideBarOuter .box .boxContent:eq(0)"); 
//	var barBox2 = new SideBarBox("#sideBarOuter .box .boxContent:eq(1)"); 
	
//	barBox.changeCurrent(1);
//	barBox2.changeCurrent(2);
});
